package page.sample;

import java.util.List;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
import org.apache.wicket.markup.repeater.data.ListDataProvider;

import app.MyFirstWebApplication;
import dao.impl.*;
import entity.*;

/**
 * Page displays list of "Circle" objects.
 * 
 * @author dmitry_zhivushko
 * @since Nov 2, 2014
 */
public class Auto extends WebPage {

	public Auto() {
		super();

		// retrieve new instance of DAO (can be reused)
		final AdminDao adminDao = new AdminDao(MyFirstWebApplication.DATA_XML_FOLDER);

		// get list of Circle objects using DAO
		final List<Administrator> allAdmin = adminDao.getAll();

		// create "repeater" component to build rows of the "table" in output HTML
			final Item<Administrator> item;
				final Administrator admin = item.getModelObject();
				// add data for table cell in row
				item.add(new Label("first", admin.User.getFirstName()));
				item.add(new Label("last", admin.User.getLastName()));

				
			}
		

		
	}
}
